package org.kolonitsky.alexey.mvcext.events
{
    import flash.events.Event;

    import org.kolonitsky.alexey.mvcext.events.PageDescriptor;

    /**
     * 
     */ 
    public class PageEvent extends Event
    {
        public static const SWITCH_PAGE:String = "switchPage";
        
        public var pageDescriptor:PageDescriptor = null;
        
        public function PageEvent(type:String, pageDescriptor:PageDescriptor, bubbles:Boolean=true, cancelable:Boolean=false)
        {
            super(type, bubbles, cancelable);
            this.pageDescriptor = pageDescriptor;
        }
        
        override public function clone():Event
        {
            return new PageEvent(type, pageDescriptor, bubbles, cancelable) as Event;
        }
    }
}